// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import router from './router'
import store from './store'
import App from './App'
import {member,order,setting,passport,item,IMGURL} from './http'

import {Loading,Message,Row,Col} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import vuescroll from 'vuescroll';
import 'vuescroll/dist/vuescroll.css';

import Vant from 'vant';
import 'vant/lib/vant-css/index.css';

import './assets/iconfont/iconfont.css';


Vue.use(vuescroll);

Vue.use(Vant);
import  {
	ToastPlugin,
	LoadingPlugin,
	Group,
	Cell,
	Badge,
	XInput,
	XNumber,
	XTextarea,
	XAddress,
	XSwitch,
	XButton,
	Box,
	Toast,
	LoadMore
	} from 'vux';

FastClick.attach(document.body)

Vue.use(ToastPlugin, {position: 'top'})
Vue.use(LoadingPlugin)
Vue.use(Row)
Vue.use(Col)
Vue.component('group', Group)
Vue.component('cell', Cell)
Vue.component('badge', Badge)
Vue.component('x-input', XInput)
Vue.component('x-number', XNumber)
Vue.component('x-textarea', XTextarea)
Vue.component('x-address', XAddress)
Vue.component('x-switch', XSwitch)
Vue.component('x-button', XButton)
Vue.component('box', Box)
Vue.component('toast', Toast)
Vue.component('load-more', LoadMore)

Vue.use(Loading);
Vue.prototype.$message = Message;

Vue.config.productionTip = false

Vue.prototype.$http = {
	member,
	order,
	setting,
	passport,
	item,
	IMGURL
}
/* eslint-disable no-new */
new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app-box')
